package com.css.zfzx.sjcj.modules.hddcGeomorphySvyPoint.repository;

import com.css.zfzx.sjcj.modules.hddcGeomorphySvyPoint.repository.entity.HddcGeomorphysvypointEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @author zyb
 * @date 2020-11-27
 */
public interface HddcGeomorphysvypointRepository extends JpaRepository<HddcGeomorphysvypointEntity, String> {
    @Query(nativeQuery = true, value = "select * from hddc_Geomorphysvypoint where project_name in :projectIds")
    List<HddcGeomorphysvypointEntity> queryHddcGeomorphysvypointsByProjectId(List<String> projectIds);
    @Query(nativeQuery = true, value = "select * from hddc_Geomorphysvypoint where task_name in :projectIds")
    List<HddcGeomorphysvypointEntity> queryHddcGeomorphysvypointsByTaskId(List<String> projectIds);
}
